#ifndef _LEAFGET_H
#define _LEAFGET_H

//#include "../config.h"
#include <string>
#include <gtkmm.h>

#ifdef ENABLE_NLS

#include <libintl.h>             //gettext支持
#include <locale.h>                //locale支持
#define _(STRING) gettext(STRING)

#else

#define _(STRING) STRING

#endif

#define DEFAULT_SIZE_X 600
#define DEFAULT_SIZE_Y 400


typedef struct _LEAF_CONFIG_DATA {
	int         tasksLimit;
	int         speedLimit;
	bool        startNow;
	std::string defaultPath;
	std::string defaultPass;
} LEAF_CONFIG_DATA;

typedef struct _LEAF_TASK_DATA {
	int         t;
	int         option;
	int         id;
	int         size;
	int         completed;
	int         percentage;
	int         speed;
	std::string name;
	std::string time;
	std::string url;
	std::string user;
	std::string pass;
	std::string dir;
	std::string listPath;
} LEAF_TASK_DATA;

typedef struct _LEAF_COMPLETED_DATA {
	std::string name;
	std::string size;
	std::string url;
	std::string listPath;
} LEAF_COMPLETED_DATA;

typedef struct _LEAF_TRASH_DATA {
	int         percentage;
	std::string name;
	std::string size;
	std::string completed;
	std::string url;
	std::string listPath;
} LEAF_TRASH_DATA;

typedef enum {
	HTTP = 0,
	FTP,
	OTHER
} PROTOCOL;
/*
typedef enum{
	RUNNING,
	COMPLETED,
	TRASH
} CURRENT_STATE;
*/

#endif

/* EOF */
